﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Mysoft.MyCM;
using Mysoft.MyCM.Scm;
using Mysoft.MyCM.Business;
using Mysoft.MyCM.Business.Scm;

namespace Mysoft.MyCM.Web.Controllers.WebApi.Scm
{
	/// <summary>
	/// SCM-区域Api
	/// </summary>
    public class Scm_AreaController : BaseApiController
    {
		private AreaBLL _bll = new AreaBLL();

		/// <summary>
		/// 获取所有区域记录，不包含区域关联的客户及服务信息
		/// </summary>
		/// <returns></returns>
		public IEnumerable<Area> Get()
		{
			return _bll.GetAllAreas();
		}
    }
}
